FROM debian:13.1-slim
LABEL author=xiaoyilin
LABEL email=406735078@qq.com
ENV TZ=Asia/Shanghai
ARG GO_VERSION
ADD  go$GO_VERSION.linux-amd64.tar.gz /usr/local/
# Go安装目录
ENV GOROOT=/usr/local/go
ENV PATH=$PATH:$GOROOT/bin
ENV GOPROXY=https://goproxy.cn,direct
RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list.d/debian.sources && \
apt-get -y update && apt-get -y install ca-certificates 

# go mod init gitee.com/yilinxiao/61850
# go get -u github.com/wendy512/iec61850
# https://go.dev/dl/
# docker build --build-arg GO_VERSION=1.23.12 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/iec61850:20251014 .
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/iec61850:20251014
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/iec61850:20251014
# docker run --rm -it registry.cn-hangzhou.aliyuncs.com/xiaoyilin/iec61850:20251014 bash
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/iec61850:20251014